package com.cqw.ftp.service.impl;

import com.cqw.ftp.ftp.FTPClientHelper;
import com.cqw.ftp.service.FtpService;
import com.cqw.ftp.utils.CommonUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FtpServiceImpl implements FtpService {

    @Resource
    private FTPClientHelper ftpClientHelper ;// 注入ftp客户端helper对象使用

    @Override
    public boolean downloadFile(List<String> fileNames){
        return ftpClientHelper.downloadFile(fileNames, CommonUtils.getPath());
    }
}
